<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="thin_sidebar" />
        <content tag="title">${pageTitle}</content>
    </head>
    <body class="full">
        <div class="crumb">
            <g:link action="show" id="${seedbankInstance.id}">${seedbankInstance.name} (${seedbankInstance.ipAddress})</g:link> &gt;
            ${listLabel} (${torrentListTotal} total)
        </div>
        <div class="list">
            <ul class="item-list bullets">
<%
def linkLabel
def pageLinkParams = [:]
if (showLinked) {
    linkLabel = 'un-seed'
    linkAction = 'unlink'
} else {
    linkLabel = 'seed'
    linkAction = 'link'
    pageLinkParams.put('linked', '0')
}
%>
<g:each in="${torrentList}" status="i" var="torrentInstance">
                <li>
                    <strong><ts:torrentLink torrent="${torrentInstance}">${torrentInstance.name}</ts:torrentLink></strong>
                    ${torrentInstance.item.title}
                    (<ts:formatFileSize file_size="${torrentInstance.size}" precision="2"/>)
                    <g:link action="${linkAction}" id="${seedbankInstance.id}" params="${['info_hash':torrentInstance.infoHash]}">${linkLabel}</g:link>

                </li>
</g:each>
            </ul>
        </div>
        <div class="pagination">
            <g:paginate id="${params.id}" total="${torrentListTotal}" params="${pageLinkParams}" prev="&laquo; Previous" next="Next &raquo;"/>
        </div>
    </body>
</html>
